package com.briup.product_source.util;

import com.briup.product_source.pojo.ManagerAnimal;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.io.IOException;

/**
 * @author Administrator
 * @version 1.0
 * @description: TODO
 * @date 2024/8/26 上午10:02
 */
public class JsonConverter {
    public static String convertToJson(ManagerAnimal data) throws IOException {
        ObjectMapper mapper = new ObjectMapper();
        return mapper.writeValueAsString(data);
    }
}
